/*
 * Copyright 2010 Groupware.cc All right reserved. This software is the confidential and proprietary information of
 * Groupware.cc ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into with Groupware.cc.
 */
package com.rome.syncml.service;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rome.syncml.domain.Feedback;
import com.rome.syncml.persistence.FeedbackMapper;

/**
 * 类FeedbackService.java的实现描述：TODO 类实现描述
 * 
 * @author rosebible 2011-9-27 下午06:41:29
 */
@Service
public class FeedbackService {

    @Autowired
    private FeedbackMapper feedbackMapper;

    public int create(Long userId, String content) {
        Feedback feedback = new Feedback();
        feedback.setUserId(userId);
        feedback.setContent(content);
        feedback.setDateCreated(new Date());
        return feedbackMapper.insert(feedback);
    }

}
